<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<fmt:setBundle basename="messages" />
<c:set var="t" value="true" />
<script language="JavaScript" src="scripts/ts_picker.js"></script>
<title><fmt:message key="title"/> </title>
</head>
<body>
<div style="height: 119px; margin-left: 1px">
        <h1 style="text-align: center">
            Leave Application</h1><div id="sidebar1" style="width: 199px; height: 266px">
	<h2>Menu</h2>
	
	<p><a href="LeaveApplyJSP.jsp">Apply Leave</a></p>
	<p style="width: 202px; "><a href="PersonalLeaveHistory.jsp">View Personal Leave History</a></p>
	<p><a href="PersonalLeaveUpdate.jsp">Edit Leave(s)</a></p>
	
	<p><a href="LogoutServlet.jsp">Logout</a></p>
  	<!-- end #sidebar1 --></div>
        </div>
        <div style="margin-left: 248px; height: 379px; width: 496px;"><div>

<form action="/demo/process" method=post>

<jsp:useBean id="hero" class="model.EmployeeDTO"/>
<center>
<table cellpadding=4 cellspacing=2 border=0>
<tr>
<th width="45%">
Description
</th>
<th width="55%">
Detail
</th>
</tr>
<tr>
<td><fmt:message key="setup.name"/>
</td>
<td>
<c:if test="${param['insert']==t}" >
<input type="text" name="name" value="${param['name']}" size=15 maxlength=20>
<input type="hidden" name="ins" value="true" />
</c:if>
<c:if test="${param['update']==t}" >
<input type="text" name="name" value="${param['name']}" size=15 maxlength=20 readonly="readonly">
<input type="hidden" name="ins" value="false" />
</c:if>
</td>
</tr>
<tr>
<td><fmt:message key="setup.description"/>
</td>
<td><input type="text" name="description" value="${param['description']}" size=15 maxlength=20>
</td>
</tr>
<tr>
<td><fmt:message key="setup.play"/>
</td>
<td><input type="text" name="play" value="${param['play']}" size=15 maxlength=20>
</td>
</tr>
</table>
</center>
<input type="submit" value="Submit"> <input type="reset"  value="Reset">
</form>
</div></div>
</body>
</html>